<extend name="base" />

<block name="panel">

  <div class="board">
    <div>
    <table class="table table-bordered">
      <colgroup>
        <col width="12%"></col><col width="12%"></col><col width="12%"></col><col width="18%"></col><col width="18%"></col><col width="18%"></col><col width="10%"></col>
      </colgroup>
      <foreach name="folders" item="vo" key="id">
        <tr>
          <td><input type="text" value="{$vo.folder_name_en}" id="folder_name_en{$vo.folder_id}"></td>
          <td><input type="text" value="{$vo.folder_name_sc}" id="folder_name_sc{$vo.folder_id}"></td>
          <td><input type="text" value="{$vo.folder_name_tc}" id="folder_name_tc{$vo.folder_id}"></td>
          <td>{$vo.count}</td>
          <td><button id="{$vo.folder_id}" class="folder_save btn btn-info"> save </button></td>
          <td><a href="{$baseurl}Console/photoEdit/folder_id/{$vo.folder_id}"><button class="btn btn-info">expand</button></a></td>
          <td><button id="{$vo.folder_id}" class="folder_delete btn btn-info"> delete </button></td>
        </tr>
      </foreach>

    </table>
    </div>

    <div>
      <button id="add" class="btn btn-info"> add </button> <span style="padding-right:10px;"></span>
    </div>

    <br/>
    <div id="add" style="display:none;">
      <table class="table table-bordered">
        <tr><td>name(en)</td><td>name(sc)</td><td>name(tc)</td>
        <tr>
          <td><input type="text" value="" id="folder_name_en" placeholder="英文" /></td>
          <td><input type="text" value="" id="folder_name_sc" placeholder="简体" /></td>
          <td><input type="text" value="" id="folder_name_tc" placeholder="繁体" /></td>
        </tr>
      </table>
      <button class="btn btn-info" id="folderAdd"> save </button>
    </div>
    <br/>

  </div>


</block>

